<template>
	<view class="normal-login-container">
		<view class="logo-content align-center justify-center flex">
			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
			</image>
			<text class="title">汉堡与我们</text>
		</view>
		<view class="login-form-content">
			<view class="action-btn">
				<button @click="sendMsg()" class="login-btn cu-btn block bg-blue lg round">欢迎回来</button>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				globalConfig: getApp().globalData.config
			}
		},
		created() {},
		methods: {
			sendMsg() {
				uni.requestSubscribeMessage({
					tmplIds: ["1efTd9Kk103msWrQh0V9Uli78joFrNlc9RnSgfjtHRg","tYoCx_lMKmFtzI_tR5_5mLUS5IE8GHOxkXdWEbwPa7w"], // 改成你的小程序订阅消息模板id
					success: () => {
						console.log("订阅成功")
						this.$tab.switchTab('/pages/index')
					}
				});

			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #ffffff;
	}

	.normal-login-container {
		width: 100%;

		.logo-content {
			width: 100%;
			font-size: 21px;
			text-align: center;
			padding-top: 15%;

			image {
				border-radius: 4px;
			}

			.title {
				margin-left: 10px;
			}
		}

		.login-form-content {
			text-align: center;
			margin: 20px auto;
			margin-top: 15%;
			width: 80%;

			.input-item {
				margin: 20px auto;
				background-color: #f5f6f7;
				height: 45px;
				border-radius: 20px;

				.icon {
					font-size: 38rpx;
					margin-left: 10px;
					color: #999;
				}

				.input {
					width: 100%;
					font-size: 14px;
					line-height: 20px;
					text-align: left;
					padding-left: 15px;
				}

			}

			.login-btn {
				margin-top: 40px;
				height: 45px;
			}

			.reg {
				margin-top: 15px;
			}

			.xieyi {
				color: #333;
				margin-top: 20px;
			}

			.login-code {
				height: 38px;
				float: right;

				.login-code-img {
					height: 38px;
					position: absolute;
					margin-left: 10px;
					width: 200rpx;
				}
			}
		}
	}
</style>